//
//  LJFPeopleSearchCollectionViewCell.m
//  GiftThat
//
//  Created by 刘景峰 on 16/1/9.
//  Copyright © 2016年 ChuXiang. All rights reserved.
//

#import "LJFPeopleSearchCollectionViewCell.h"

@implementation LJFPeopleSearchCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
     self = [super initWithFrame:frame];
    if (self) {
        self.label = [UILabel new];
        self.label.layer.cornerRadius = 5;
        self.label.layer.borderWidth = 0.5f;
        self.label.font = [UIFont systemFontOfSize:13];
        self.label.textAlignment = UITextAlignmentCenter;
//        self.label.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:self.label];
    }
    return self;
}

-(void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes{
    self.label.frame = CGRectMake(5, 5, self.width - 10, self.height - 10);
}

-(void)setString:(NSString *)string{

    self.label.text = string;
}

@end
